<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@page import="entity.tUser"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<%
	tUser tuser = (tUser) session.getAttribute("user");
%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<title>设备-水处理系统</title>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<link href="css/style.css" rel="stylesheet" type="text/css" />

		<script src="js/jquery-1.8.2.min.js" type="text/javascript">
</script>
		<script src="js/jquery.carouFredSel-6.0.4-packed.js"
			type="text/javascript">
</script>
		<script type="text/javascript" src="js/check.js">
</script>

	</head>
	<body>

		<s:if test="result != null">
			<script type="text/javascript">
alert('${result}');
window.window.location.href = 'gettUserDateToAlter?userId=${userId}';
</script>
		</s:if>

		<div class="main">
			<jsp:include page="conter/header.jsp"></jsp:include>
			<div class="certen">
				<jsp:include page="conter/userLeft.jsp"></jsp:include>

				<div class="content">
					<div class="mainbar">
						<div class="runbutton">
							<h2>
								<span style="letter-spacing: 20px; margin-left: 33px;">修改人员</span>
							</h2>
							<div class="clr"></div>
						</div>
						<div class="article" style="height: 590px;">

							<form action="updatetUserAction?userId=${userId }" method="post">

								<ol>
									<li>
										<label for="userName">
											用户名
										</label>
										<input id="userName" name="userName" class="text"
											value="${userName}" readonly="readonly" />
									</li>
									<li>
										<label for="trueName">
											姓名
										</label>
										<input id="trueName" name="trueName" class="text"
											value="${trueName}" />
									</li>
									<li>
										<label for="grade">
											级别
										</label>
										<select style="width: 200px;" class="s" name="grade"
											id="grade">

											<option value="1">
												区域代理员
											</option>
											<option value="0">
												客户
											</option>
										</select>
									</li>
									<li>
										<label for="deviceArea">
											区域（省）
										</label>
										<select style="width: 200px;" class="s" id="test" name="test">
											<option>
												${test }
											</option>
											<s:iterator id="lists" value="#request.lists">

												<option>
													${name }
												</option>
											</s:iterator>

										</select>
									</li>
									<li>
										<label for="email">
											邮箱
										</label>
										<input id="email" name="email" class="text" value="${email}" />
									</li>
									<li>
										<label for="mobilePhone">
											手机
										</label>
										<input id="mobilePhone" name="mobilePhone" class="text"
											value="${mobilePhone}" />
									</li>
									<li>
										<label for="phone">
											电话
										</label>
										<input id="phone" name="phone" class="text" value="${phone}" />
									</li>
									<li>
										<input type="image" src="images/alter.jpg"
											onclick="this.form.submit()" />
										<input type="image" src="images/raset.jpg" class="send1"
											onclick="reset();return false;" />
										<div class="clr"></div>
									</li>
								</ol>
							</form>
						</div>

					</div>
					<div class="clr"></div>
				</div>
			</div>
			<div class="fbg">
				<div class="fbg_resize">
					<jsp:include page="conter/slide.jsp"></jsp:include>
				</div>
			</div>
			<jsp:include page="conter/footer.jsp"></jsp:include>
		</div>
	</body>
</html>